package com.jiyun.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.pojo.Inventory;
import com.jiyun.service.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: 刘清芳
 * @description:
 * @date: 2023/12/25 15:30
 */
@RestController
@RequestMapping("inventory")
public class InventoryController {
    @Autowired
    InventoryService inventoryService;

    @PostMapping("/findAllinventory")
    public List<Inventory> findAllinventory(){

        return inventoryService.list();
    }

}
